﻿using System;
using Imladris.UI.Manager;
using Imladris.UI.Repositories.Interfaces;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;


namespace Imladris.Test.ClientSide
{
    [TestClass]
    public class DocumentManagerTest
    {

        private IUnityContainer Container;

        [TestMethod]
        public void GetAllTest()
        {
            Container = new UnityContainer();
            Container.LoadConfiguration();
            var repo = Container.Resolve<IDocumentsRepository>();
            //arange
            var manager = new DocumentManager(repo);
            //act            
            var docList = manager.GetAllDocuments();
            //assert
            Assert.IsNotNull(docList,"docList is Nullish");
        }
    }
}
